package com.qlslylq.ad.sdk.enums;

/**
 * 广告平台标识<br/>
 */
public enum AdPlatformEnum {

    PLATFORM_UNKNOW("UnKnowPlatform", "UnKnowPlatform"),
    PLATFORM_DY("蒂烨SDK", "dyplatform"),
    PLATFORM_CSJ("穿山甲", "csjplatform"),
    PLATFORM_YLH("优量汇", "qqadnet"),
    PLATFORM_KS("快手联盟", "kuaishou"),
    PLATFORM_SIGMOB("SigMob", "sigmob"),
    PLATFORM_MINTEGRAL("Mintegral", "mintegral");

    private String id;

    private String name;

    AdPlatformEnum(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static AdPlatformEnum getEnumByName(String name) {
        for (AdPlatformEnum item : AdPlatformEnum.values()) {
            if (item.getName().equals(name)) {
                return item;
            }
        }
        return PLATFORM_UNKNOW;
    }

}
